import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: 银联支付参数名称,
            dataIndex: yinlianPayName,
            width: 200,
        },
        {
            title: appId,
            dataIndex: appId,
            width: 200,
        },
        {
            title: appKey,
            dataIndex: appKey,
            width: 200,
        },
        {
            title: 商户号,
            dataIndex: mid,
            width: 200,
        },
        {
            title: 终端号,
            dataIndex: tid,
            width: 200,
        },
        {
            title: 来源编号,
            dataIndex: msgSrcId,
            width: 200,
        },
        {
            title: md5密钥,
            dataIndex: md5Secret,
            width: 200,
        },
        {
            title: 请求地址,
            dataIndex: openApiAddress,
            width: 200,
        },
        {
            title: 是否删除,
            dataIndex: deleted,
            width: 200,
        },
        {
            title: 更新人,
            dataIndex: updateUser,
            width: 200,
        },
        {
            title: 更新时间,
            dataIndex: updateTime,
            width: 200,
        },
        {
            title: 创建人,
            dataIndex: createUser,
            width: 200,
        },
        {
            title: 创建时间,
            dataIndex: createTime,
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: 银联支付参数名称,
            field: yinlianPayName,
            width: 200,
            required: true
        },
        {
            label: appId,
            field: appId,
            width: 200,
            required: true
        },
        {
            label: appKey,
            field: appKey,
            width: 200,
            required: true
        },
        {
            label: 商户号,
            field: mid,
            width: 200,
            required: true
        },
        {
            label: 终端号,
            field: tid,
            width: 200,
            required: true
        },
        {
            label: 来源编号,
            field: msgSrcId,
            width: 200,
            required: true
        },
        {
            label: md5密钥,
            field: md5Secret,
            width: 200,
            required: true
        },
        {
            label: 请求地址,
            field: openApiAddress,
            width: 200,
            required: true
        },
        {
            label: 是否删除,
            field: deleted,
            width: 200,
            required: true
        },
        {
            label: 更新人,
            field: updateUser,
            width: 200,
            required: true
        },
        {
            label: 更新时间,
            field: updateTime,
            width: 200,
            required: true
        },
        {
            label: 创建人,
            field: createUser,
            width: 200,
            required: true
        },
        {
            label: 创建时间,
            field: createTime,
            width: 200,
            required: true
        },
];
